﻿using System;
using System.Collections.Generic;
using System.Text;
using CeA.Reports.Atendimento.DataAccess.DTO;
using System.Data.OracleClient;
using System.Data;
using CeA.Reports.Atendimento.DataAccess.Helpers;
using CeA.Reports.Atendimento.DataAccess.Criteria;
using IBatisNet.DataMapper;

namespace CeA.Reports.Atendimento.DataAccess.DAO.Oracle
{
    public class OracleServicoImpl : Servico
    {


        public OracleServicoImpl()
        {
            // m_connection = OracleDAOFactory.CreateConnection();
        }

        /// <summary>
        /// Lista as Nome com critério de busca.
        /// </summary>
        /// <returns></returns>
        public List<ServicoDTO> ListarIdentificacao()
        {
            IList<ServicoDTO> list = Mapper.Instance()
                   .QueryForList<ServicoDTO>("servicoSelectList", null);
            return (List<ServicoDTO>)list;
        }

        public ServicoDTO Recuperar(int id)
        {
            ServicoDTO dto = Mapper.Instance().QueryForObject<ServicoDTO>("selectServico", id);
            return dto;
        }

    }
}
